package com.doumi.biz.qadev.api.enums;

import com.beust.jcommander.internal.Lists;

import java.util.List;

/**
 * Created by YDZ on 2019/10/26.
 */
public enum FilterEnums {
    //姓名、性别单独过滤 虚拟号码单独
    source("zsjz,zsjzx,xzsjz,xzsjzx,yzsjzyyy,dasda","简历来源，已分号分割，过滤zsjz"),
    business_behavior("1,0","是否有商家行为：1有 0 没有 "),
    job_prefer("0,10","意向"),
    communication_record ("空号,过期,不需要,不考虑","备注"),
    user_status("1,0,-5,6,7,5","户状态 5正常 0审核中 -5禁用"),
    is_destroyed("0,5","0-未注销，5-已注销"),
    frozen_type("1,2,3,0","冻结状态，0-未冻结，1-冻结三天；2-冻结七天；3-永久冻结"),
    black_user("0,1","黑产"),
    white_user("0,1","白名单"),
    description("平台,一站式,趣招聘,咨询热线","描述"),
    user_mobile("16531361452,16712451236,64342341232,10102547896,99552345985,17165601258","电话"),
    vacontMobile("13188979985,13188979986,13188979987,13188979988,13188989985,13188999985","电话空号"),
    user_name("张,扎·心,简历柴,建立推荐,检点·一站式,dada,  ,1648,*-56,#$@#,毛泽东,氵昷宀豕宀玉,1K粉,V信132,V123,a级情片,平台,一站式,趣招聘,咨询热线,相里士林,da王建,a·,,爱新觉罗·玄烨","非法姓名和敏感词姓名");
//    user_mobile("147,","电话非法");
//    other(100,"其他");

    private String Key;
    private String Detail;

    public String getKey() {
        return Key;
    }

    public String getDetail() {
        return Detail;
    }

    FilterEnums(String key, String detail) {
        Key = key;
        Detail = detail;
    }
    public static List<FilterEnums> toList() {
        List list = Lists.newArrayList();//Lists.newArrayList()其实和new ArrayList()几乎一模
        //  一样, 唯一它帮你做的(其实是javac帮你做的), 就是自动推导(不是"倒")尖括号里的数据类型.
        for (FilterEnums filterEnums : FilterEnums.values()) {
//            Map<String, Object> map = new HashMap<String, Object>();
//            map.put("code", degree.getKey());
//            map.put("name", degree.getValue());
            list.add(filterEnums);
        }
        return list;
    }
}
